{  Statement: http://acmp.ru/?main=task&id_task=504
   Verdict: Accepted
}
uses
    SysUtils, Math;

var
    n:longint;

begin
reset(input,'input.txt');
rewrite(output,'output.txt');
read(n);
n := n mod 3;
if n = 0 then write('GCV') else
if n = 1 then write('VGC') else
if n = 2 then write('CVG');
end.
